<template>
  <Card :bordered="false" style="margin: -24px -24px 0px;">
    <result type="success" :description="description" :title="title">
      <template slot="action">
        <Button type="primary">返回列表</Button>
        <Button style="margin-left: 8px">查看项目</Button>
        <Button style="margin-left: 8px">打印</Button>
      </template>
      <div>
        <div style="font-size: 16px; color: rgba(0, 0, 0, 0.85); font-weight: 500; margin-bottom: 20px;">项目名称</div>
        <Row style="margin-bottom: 16px">
          <Col :xs="24" :sm="12" :md="12" :lg="12" :xl="6">
          <span style="color: rgba(0, 0, 0, 0.85)">项目 ID：</span>
          20180724089
          </Col>
          <Col :xs="24" :sm="12" :md="12" :lg="12" :xl="6">
          <span style="color: rgba(0, 0, 0, 0.85)">负责人：</span>
          曲丽丽是谁？
          </Col>
          <Col :xs="24" :sm="24" :md="24" :lg="24" :xl="12">
          <span style="color: rgba(0, 0, 0, 0.85)">生效时间：</span>
          2016-12-12 ~ 2017-12-12
          </Col>
        </Row>
        <Steps :current="1" :direction="isMobile() && directionType.vertical || directionType.horizontal" progressDot>
          <Step title="创建项目">
            <div style="fontSize: 12px; color: rgba(0, 0, 0, 0.45); position: relative; left: 42px;text-align: left;" >
              <div style="margin: 8px 0 4px">
                曲丽丽
                <Icon style="margin-left: 8px" type="dingding-o" />
              </div>
              <div>2016-12-12 12:32</div>
            </div>
          </Step>
          <Step title="部门初审">
            <div style="fontSize: 12px; color: rgba(0, 0, 0, 0.45); position: relative; left: 42px;text-align: left;" >
              <div style="margin: 8px 0 4px">
                周毛毛
                <Icon style="margin-left: 8px; color: #00A0E9" type="dingding-o" />
              </div>
              <div><a href="">催一下</a></div>
            </div>
          </Step>
          <Step title="财务复核">
          </Step>
          <Step title="完成" >
          </Step>
        </Steps>
      </div>
    </result>
  </Card>
</template>

<script>
import { Result } from '@/components'
import { mixinDevice } from '@/utils/mixin.js'

const directionType = {
  horizontal: 'horizontal',
  vertical: 'vertical'
}

export default {
  name: 'Success',
  components: {
    Result
  },
  mixins: [mixinDevice],
  data () {
    return {
      title: '提交成功',
      description: '提交结果页用于反馈一系列操作任务的处理结果，\n' +
          ' 如果仅是简单操作，使用 Message 全局提示反馈即可。\n' +
          ' 本文字区域可以展示简单的补充说明，如果有类似展示\n' +
          ' “单据”的需求，下面这个灰色区域可以呈现比较复杂的内容。',
      directionType
    }
  }
}
</script>

<style scoped>

</style>
